<div class="SipeiStat border_3 pb20 centered back_bgf mt20">   
    <h1 class="clearfix pl20 mb20 fonts_18 height40 fontc_444 fontw_normal back_bgfd"><?php echo $this->title; ?></h1>
    
    <div id="container" style="width:90%; margin:0 auto;"></div>
    <?php $photo_name_list = isset($point['key'])?json_encode($point['key']):'';
           $photo_data = array(); $photo_data_list = '';     ?>
        <table class="fontc_666 height32">
            <thead class="back_bgf5 fontc_999">
                <tr>
                    <th width="90" align="center" class="border_d">
                        <?php echo $examInfo['exam_name']; ?>
                    </th>
                    <th width="87" align="center" class="border_d"></th>
                    <?php echo $list1; ?>
                </tr>
            </thead>
            <tbody class="fontc_444">
                <tr>
                    <td align="center" class="border_d">学校</td>
                    <td align="center" class="border_d">人数</td>
                    <?php echo $list2; ?>
                </tr>
                <?php if(isset($point['data'])): ?>
                <?php foreach($point['data'] as $dKey => $dVal): ?>
                <tr>
                    <td align="center" class="border_d"><?php echo $schoolObject[$dKey];  ?></td>
                    <td align="center" class="border_d"><?php echo $dVal['people']; ?></td>
                    <?php
                        $sArray = array();
                        $sArray['name'] = $schoolObject[$dKey];
                        foreach($dVal['data'] as $dV):
                        $sArray['data'][] = $dV;
                            ?>
                    <td align="center" class="border_d"><?php echo $dV; ?></td>
                    <?php 
                        endforeach;
                    $photo_data[] = $sArray;    ?>
                </tr>
                <?php endforeach; ?>
                <?php endif; ?>
            </tbody>
        </table>
        <?php $photo_data_list = json_encode($photo_data); ?>
        <div class="clearfix pt15 pb10 pl20"><input type="button" value="导出至Excel" class="b_a_n border_3 back_bgfb w80 height32 fontc_FFF fonts_12"></div>
</div>
<script type="text/javascript">
    function charts_line(type, categories, data) {
        $('#container').highcharts({
            title: {
                text: '成绩统计',
                x: 0 //
            },
            subtitle: {
                text: type,
                x: 0
            },
            xAxis: {
                categories: categories
            },
            yAxis: {
                title: {
                    text: ''
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
            },
            tooltip: {
                valueSuffix: '人'
            },
            credits: {
                text: '',
                href: 'http://www.example.com'
            },
            series: data
        });
    }
    $(function() {
        var type = '（分数段）',
            categories = <?php echo $photo_name_list; ?>,
            data = <?php echo $photo_data_list; ?>;
        charts_line(type, categories, data);
    });
</script>